package com.example.bean;

import java.util.Date;

public class Note {
    private Integer userId;
    private String title;
    private String message;
    private Date time;

    public Note() {
    }

    public Note(Integer userId, String title, String message, Date time) {
        this.userId = userId;
        this.title = title;
        this.message = message;
        this.time = time;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public Date getTime() {
        return time;
    }

    public void setTime(Date time) {
        this.time = time;
    }

    @Override
    public String toString() {
        return "Note{" +
                "userId=" + userId +
                ", title='" + title + '\'' +
                ", message='" + message + '\'' +
                ", time=" + time +
                '}';
    }
}
